<?php
	include_once 'db.php';

	class plug_types {
		const dummy = 0;
		const sec = 1;
	}

	class base_plugin {
		
		
		function base_plugin() {
			die("base_plugin is an abstract class");
		}
		function getType() {
			return plug_types::dummy;
		}
		
		private $tool;
		function setToolKit($toolkit) {
			$this->tool = $toolkit;
		} 
		protected function tools() {
			return $this->tool; 
		}
		
		//	These are the methods any security plugin should override
		function secCheckAuth() 		 { die("A security plugin must override secCheckAuth()"); 			}
		function secPrintLoginModule() 	 { die("A security plugin must override secPrintLoginModule()"); 	}
		function secPerformLogin()		 { die("A security plugin must override secPerformLogin()"); 		}
		function secPerformLogout()		 { die("A security plugin must override secPerformLogout()"); 		}
		function secRegisterAllowed()	 { die("A security plugin must override secRegisterAllowed()");		}
		function secPrintRegisterModule(){ die("A security plugin must override secPrintRegisterModule()");	}
		function secPerformRegister()	 { die("A security plugin must override secPerformRegister()"); 	}
		
		function secGetUID()			 { die("A security plugin must override secGetUID()");				}
	}
?>